from google.appengine.ext import db

class CV(db.Model):
	name = db.StringProperty(required=True)
	owner = db.UserProperty(required=True)
	created = db.DateTimeProperty(auto_now_add=True,required=False)
	last_update = db.DateTimeProperty(auto_now=True,required=False)

class Personal(db.Model):
	cv = db.ReferenceProperty(CV)
	date_of_birth = db.DateProperty(required=False)
	surname = db.ŞtringProperty(required=False)
	first_name = db.ŞtringProperty(required=False)
	gender = db.IntegerProperty(required=False)
